<template>
  <div class="home-page">
    <div class="home-wrap">
      <div class="headerPage">
        <img class="logoImage" src="../../assets/images/logo.png" alt="" />
        <img class="logoImage3" src="../../assets/images/logo3.png" alt="" />
      </div>
      <div class="background">
        <img src="../../assets/images/banner.jpg" alt="" />
      </div>
      <div class="content-warp">
        <div class="content-row" v-for="(ele, index) in list" :key="index">
          <div class="row-head">
            <div class="wealfare">{{ ele.wealfare }}</div>
            <div class="subtitle">{{ ele.subtitle }}</div>
          </div>
          <div class="link-box">
            <div
              class="link-row"
              v-for="(item, idx) in ele.children"
              :key="idx"
              @click="gotoLink(item)"
            >
              <div class="coinLogo2">
                <img :src="item.coinLogo2Imag" />
              </div>
              <div class="topView">
                <img :src="item.topViewImag" />
              </div>
              <div class="titleBig">
                {{ item.titleBig }}
              </div>
              <div class="subtitle"></div>
              <div class="subCoin">
                <img src="../../assets/images/金币小图标@2x.png" />
              </div>
              <div class="coinNum">
                {{ item.coinNum }}
              </div>
              <div class="subBtn">
                立即开始
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footerPage">
      <div class="bottomBar">
        <a href="https://xwb.xiawanzhuan.com/#" class="linkTitle">
          <div class="content">
            <div class="image">
              <img src="../../assets/images/高亮@2x.png" />
            </div>
            <div
              style="font-family: helvetica;margin-bottom: 10px;text-align: center;width: 100%;height: 36px;font-size: 12px;color: #000000;"
            >
              首 页
            </div>
          </div>
        </a>
        <a
          href="http://dpurl.cn/I6rtjxxz"
          class="linkTitle"
          style="text-decoration:none;"
        >
          <div class="content">
            <div class="image">
              <img src="../../assets/images/meituan.png" />
            </div>
            <div
              style="font-family: helvetica;margin-bottom: 10px;text-align: center;width: 100%;height: 36px;font-size: 12px;color: #C8C8C8"
            >
              外卖红包
            </div>
          </div>
        </a>
      </div>
    </div>
    <vueToTop type="1" size="30" style="bottom: 60px;"></vueToTop>
    <DialogModule
      :visable="dialogVisable"
      :soucedata="soucedata"
      @updataValue="updataValue"
    />
  </div>
</template>

<script>
import DialogModule from "./components/DialogModule.vue";
export default {
  components: {
    DialogModule
  },
  props: {},
  data() {
    return {
      url: "",
      soucedata: null,
      dialogVisable: false,
      list: [
        {
          wealfare: "最强推荐",
          subtitle: "新手必做平台，抢到就是赚到！",
          children: [
            {
              iconAlert: require("@/assets/images/ddhb01.png"),
              coinLogo2Imag: require("@/assets/images/ddhb011.png"),
              topViewImag: require("@/assets/images/新人必做@2x.png"),
              titleBig: "多多红包",
              subtitle: "",
              coinNum: "300.00",
              link: "http://www.ddhb101.store/?r=816125379&d=20231215&en=WearStyle&t=link&m=1&bt=1"
            },
            {
              iconAlert: require("@/assets/images/yysk02.jpg"),
              coinLogo2Imag: require("@/assets/images/yysk021.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "应用试客",
              subtitle: "",
              coinNum: "280.00",
              link: "https://wx.shike.com/i/MSqjqGv"
            },
            {
              iconAlert: require("@/assets/images/qk03.jpg"),
              coinLogo2Imag: require("@/assets/images/qk031.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "钱咖",
              subtitle: "",
              coinNum: "280.00",
              link: "https://fqm001.com/aurora?u=11675826&referer_code=bc87e230cd&v=20231215"
            },
            {
              iconAlert: require("@/assets/images/sz11.png"),
              coinLogo2Imag: require("@/assets/images/sz11.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "闪挣",
              subtitle: "",
              coinNum: "280.00",
              link: "https://share.petrichorlife.xyz/?u=u21746919373"
            },
            {
              iconAlert: require("@/assets/images/kpsw17.jpg"),
              coinLogo2Imag: require("@/assets/images/kpsw17.jpg"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "靠谱试玩",
              subtitle: "",
              coinNum: "280.00",
              link: "http://s6.haoshiwanpt.com/share/170262343025290457/eyJ1aWQiOjI1MjkwNDU3fQ%3D%3D.eyJjaGFubmVsIjoiaW9zIiwiY2hsX3R5cGUiOiJzaGFyZSJ9?plat_flag=0&act_source=invite"
            },
            {
              iconAlert: require("@/assets/images/xxlh.jpg"),
              coinLogo2Imag: require("@/assets/images/xxlh.jpg"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "小熊零花",
              subtitle: "",
              coinNum: "280.00",
              link: "http://ld.hongyanhg.com/ilanding/share?promote=885375"
            }
          ]
        },
        {
          wealfare: "悬赏任务",
          subtitle: "多劳多得，高佣任务随时做！",
          children: [
            {
              iconAlert: require("@/assets/images/sbz01.png"),
              coinLogo2Imag: require("@/assets/images/sbz01.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "赏帮赚",
              subtitle: "",
              coinNum: "260.00",
              link: "http://xyinmw.ddkuaidobanchq6hb.cn/14764857"
            },
            {
              iconAlert: require("@/assets/images/qxz01.jpg"),
              coinLogo2Imag: require("@/assets/images/qxz01.jpg"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "趣闲赚",
              subtitle: "",
              coinNum: "260.00",
              link: "https://wfsh.026o.cn/7530335"
            },
            {
              iconAlert: require("@/assets/images/zrb01.png"),
              coinLogo2Imag: require("@/assets/images/zrb01.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "众人帮",
              subtitle: "",
              coinNum: "260.00",
              link: "http://b.wo3.cc/earn-27577484"
            },
            {
              iconAlert: require("@/assets/images/zql01.png"),
              coinLogo2Imag: require("@/assets/images/zql01.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "赚钱了",
              subtitle: "",
              coinNum: "260.00",
              link:"https://t.taoymi.com/rg1/index.html#/register?id=1774523&appId=93&chlCode=h5"
            },
            {
              iconAlert: require("@/assets/images/xab01.png"),
              coinLogo2Imag: require("@/assets/images/xab01.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "喜爱帮",
              subtitle: "",
              coinNum: "260.00",
              link: "https://m.xiaicn.cn/invite/1049341"
            },
            {
              iconAlert: require("@/assets/images/ddxs01.png"),
              coinLogo2Imag: require("@/assets/images/ddxs01.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "多多悬赏",
              subtitle: "",
              coinNum: "260.00",
              link: "http://kl.duoduoabo.cn/?r=985005685&p=link"
            },
            {
              iconAlert: require("@/assets/images/hsb01.png"),
              coinLogo2Imag: require("@/assets/images/hsb01.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "红赏吧",
              subtitle: "",
              coinNum: "260.00",
              link: "http://j.wv6.cc/5@3M7Q7"
            }
          ]
        },
        {
          wealfare: "游戏试玩",
          subtitle: "空闲娱乐，玩游戏赚零花！",
          children: [
            // {
            //   iconAlert: require("@/assets/images/dysw.jpg"),
            //   coinLogo2Imag: require("@/assets/images/dysw.jpg"),
            //   topViewImag: require("@/assets/images/必做平台@2x.png"),
            //   titleBig: "多游试玩",
            //   subtitle: "",
            //   coinNum: "260.00",
            //   link: "https://dysw.xiawanzhuan.com",
            // },
            // {
            //   iconAlert: require("@/assets/images/dk1.jpg"),
            //   coinLogo2Imag: require("@/assets/images/dk1.jpg"),
            //   topViewImag: require("@/assets/images/必做平台@2x.png"),
            //   titleBig: "蛋咖",
            //   subtitle: "",
            //   coinNum: "260.00",
            //   link: "https://dysw.xiawanzhuan.com",
            // },
            {
              iconAlert: require("@/assets/images/zk1.png"),
              coinLogo2Imag: require("@/assets/images/zk1.png"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "赚客",
              subtitle: "",
              coinNum: "260.00",
              link: "https://1.okzhuan8.com/w/link/21519310"
            },
            // {
            //   iconAlert: require("@/assets/images/dcmh.png"),
            //   coinLogo2Imag: require("@/assets/images/dcmh.png"),
            //   topViewImag: require("@/assets/images/必做平台@2x.png"),
            //   titleBig: "多彩魔盒",
            //   subtitle: "",
            //   coinNum: "260.00",
            //   link: "http://www.duomoburl.com/8lo-jjh6",
            // },
            {
              iconAlert: require("@/assets/images/okz01.jpg"),
              coinLogo2Imag: require("@/assets/images/okz01.jpg"),
              topViewImag: require("@/assets/images/必做平台@2x.png"),
              titleBig: "Ok赚",
              subtitle: "",
              coinNum: "260.00",
              link: "https://1.okzhuan6.com/invite/link/20245705"
            }
            // {
            //   iconAlert: require("@/assets/images/xzzq08.jpg"),
            //   coinLogo2Imag: require("@/assets/images/xzzq08.jpg"),
            //   topViewImag: require("@/assets/images/必做平台@2x.png"),
            //   titleBig: "小啄赚钱",
            //   subtitle: "",
            //   coinNum: "260.00",
            //   link: "http://inviteto202205.xiaozhuokeji.com/invitation/main?p=pLzJ0awxboonVSVOvHXnOdyjxgUmYw7m0eksWZP604DsCsLZKwGVW5ed2vIDLyB0MNK8mdXYnbo08_vAEZ8kYO-LrSeeUwNBY4rYqw_qjSM=&t=2019",
            // },
          ]
        }
      ]
    };
  },
  methods: {
    updataValue() {
      this.dialogVisable = false;
    },
    gotoLink(item) {
      this.dialogVisable = true;
      this.soucedata = item;
    }
  }
};
</script>

<style lang="scss" scoped>
/* 新手任务 */
.headerPage {
  position: absolute;
  z-index: 99999;
  top: 0px;
  left: 0px;
  height: 50px;
  width: 100%;
  /* background:-moz-linear-gradient(top, #00C3FF,#0090FF); */
  background-image: linear-gradient(to left, #0090ff, #00c3ff);
  /* 自右向左 */
  display: flex;
  justify-content: flex-start;
  align-items: center;

  .logoImage {
    display: inline-block;
    width: 64.94px;
    height: 17.33px;
    margin-left: 16px;
  }
  .logoImage3 {
    margin-left: 10px;
    display: inline-block;
    width: 152.59px;
    height: 13.13px;
  }
}

.footerPage {
  display: none;
  position: fixed;
  z-index: 99999;
  height: 60px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  background-color: white;
}

.bottomBar {
  background-color: white;
  height: 60px;


  .content {
    display: inline-block;
    /* position: relative; */
    /* margin-top: -40px; */
    text-align: center;
    margin-left: 0px;
    width: 49%;
    height: 60px;

    .title {
      margin-bottom: 10px;
      /* margin-left: 50px; */
      text-align: center;
      width: 100%;
      height: 36px;
      font-size: 12px;
    }

    .title2 {
      margin-bottom: 10px;
      /* margin-left: -8px; */
      text-align: center;
      width: 100%;
      height: 36px;
      font-size: 12px;
    }

    .image {
      margin-top: 5px;
      /* margin-left: 45px; */
      margin-left: 40%;
      text-align: center;
      width: 36px;
      height: 36px;

      img {
        width: 100%;
        height: auto;
      }
    }

    .image2 {
      margin-left: 8px;

      /* width: 106px;
	height: 80px; */
      img {
        width: 106px;
        height: 100%;
      }
    }
  }
}

.background {
  position: absolute;
  left: 0px;
  margin-top: 50px;
  height: 160px;
  width: 100%;

  /* background-image: url(image/assets/首页banner.png); */
  img {
    left: 0%;
    width: 100%;
    height: auto;
  }
}

.content-warp {
  position: absolute;
  left: 0px;
  top: 210px;
  width: 100%;
  padding-bottom: 60px;

  .content-row {
    position: relative;

    .row-head {
      display: flex;
      justify-content: flex-start;
      align-items: flex-end;
      margin-left: 20px;
      margin-bottom: 20px;

      .wealfare {
        /* font-family: PingFang-SC-Bold; */
        font-family: helvetica;
        font-weight: bold;
        /* font-family: PingFang-SC-Bold; */
        font-size: 20px;
        width: 80px;
        height: 28px;
        color: #000000;
        padding-top: 4px;
      }

      .subtitle {
        font-family: PingFangSC;
        font-size: 14px;
        color: #636363;
        margin-left: 10px;
      }
    }
  }
}

.subtitle3 {
  position: absolute;
  margin-top: 215px;
  left: 110px;
  font-family: PingFangSC;
  font-size: 14px;
  color: #636363;
}

.link-box {
  position: relative;

  .link-row {
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: white;
    height: 100px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;

    .topView {
      position: absolute;
      margin-top: -5px;
      left: 7px;
      height: 21px;
      width: 59px;
      // background-image: url(../../assets/images/新人必做@2x.png);
      background-repeat: no-repeat;

      img {
        display: inline-block;
        height: 100%;
        width: 100%;
      }
    }

    .coinLogo2 {
      position: absolute;
      left: 15px;
      width: 50px;
      height: 50px;
      margin-top: 25px;

      img {
        height: 100%;
        width: auto;
      }
    }

    .titleBig {
      position: absolute;
      margin-top: 25px;
      left: 76px;
      height: 25px;
      font-family: helvetica;
      font-weight: bold;
      font-size: 18px;
      color: #000000;
    }

    .subtitle {
      position: absolute;
      margin-top: 57px;
      left: 76px;
      height: 20px;
      /* width: 100px; */
      font-family: PingFangSC;
      font-size: 14px;
      color: #979797;
    }

    .subCoin {
      position: absolute;
      margin-top: 21px;
      /* left: 243px; */
      left: 71%;
      height: 21px;
      width: 21px;

      /* background-image: url(image/assets/金币小图标.png); */
      img {
        height: 100%;
        width: auto;
      }
    }

    .coinNum {
      position: absolute;
      margin-top: 21px;
      /* left: 265px;
    */
      left: 77%;
      height: 22px;
      line-height: 22px;
      width: 53px;
      font-family: helvetica;
      /* font-family: PingFangSC; */
      font-size: 16px;
      color: #d4870e;
    }

    .subBtn {
      position: absolute;
      margin-top: 46px;
      /* left: 241px; */
      left: 70%;
      height: 30px;
      line-height: 30px;
      width: 85px;
      background: #0090ff;
      border-radius: 18.5px;
      border-radius: 18.5px;
      text-align: center;
      color: white;
    }
  }
}

/* .noviciate2 */

.moreW {
  position: absolute;
  margin-top: 475px;
  left: 5px;
  width: 98%;
  height: 109px;
  border-radius: 10px;
  background-size: cover;
  // background-image: url(../../ 超多福利.png);
}

// @media screen and (-webkit-min-device-pixel-ratio: 2),
// screen and (min--moz-device-pixel-ratio: 2) {
//   .moreW {
//     background-image: url(超多福利@2x.png);

//   }
// }

.maxTag {
  position: absolute;
  margin-top: 590px;
  height: 150px;
  width: 100%;
}

.imageBtom {
  position: relative;
  /* width:185px; */
  width: 46%;
  height: 69px;
  float: left;
  margin: 5px;
  background: #fafdfdff;
  border-radius: 8px;

  .topTitle {
    position: absolute;
    top: 15px;
    left: 13px;
    height: 22px;
    width: 38px;
    /* font-family: PingFang-SC-Bold; */
    font-family: helvetica;
    font-weight: bold;
    font-size: 16px;
    color: #464646;
  }

  .subTitle {
    position: absolute;
    top: 38px;
    left: 13px;
    height: 17px;
    width: 100px;
    font-family: PingFangSC;
    font-size: 12px;
    color: #b4b4b4;
  }

  .image {
    position: absolute;
    top: 14px;
    left: 118px;
    height: 42px;
    width: 42px;

    img {
      height: 100%;
      width: auto;
    }
  }
}

.text {
  font-size: 12px;
  margin-bottom: 5px;
}

.dialogmask {
  position: fixed;
  top: 0px;
  height: 100%;
  width: 100%;
  z-index: 100000;
  display: none;
}

.dialogmask2 {
  position: fixed;
  top: 0px;
  height: 100%;
  width: 100%;
  z-index: 100000;
  display: none;
}

.opacity {
  /*遮罩浑浊处理*/
  opacity: 0.5;
  filter: alpha(opacity=30);
  background-color: #000;
}

.box {
  overflow: hidden;
  position: absolute;
  width: 80%;
  height: 70%;
  z-index: 100000;
  /*值越大，和其他层层叠时越在上面*/
  left: 10%;
  top: 20%;
  /* background-color: #fff; */
  /* border: 1px solid rgb(0, 153, 153); */
}

.box2 {
  overflow: hidden;
  position: absolute;
  width: 80%;
  height: 403px;
  z-index: 100000;
  /*值越大，和其他层层叠时越在上面*/
  left: 10%;
  margin-top: 83px;
  /* top: 30%; */
  background-color: #fff;
  border-radius: 10px;
}

.dialogtitle {
  width: 100%;
  height: 127px;
  line-height: 30px;
  position: absolute;
  font-size: 18px;
  top: 0px;
  /* background-color: lightgrey; */
  background-image: linear-gradient(180deg, #00c3ff 0%, #0090ff 100%);
  border-radius: 10px 10px 0 0;
}

.alertBottom {
  width: 100%;
  height: 195px;
  margin-top: 104px;
  position: absolute;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
}

.alertClose {
  left: 42%;
  width: 16%;
  height: 49px;
  margin-top: 330px;
  position: absolute;
  /* background-color: #fff; */
}

.alertClose2 {
  left: 42%;
  width: 16%;
  height: 49px;
  /* margin-top: 330px; */
  position: absolute;
  /* background-color: #fff; */
  /* bottom: 20%; */
  top: 80%;
}

.dialogcontent {
  padding-top: 20px;
  overflow: scroll;
  height: calc(100% - 20px);
  height: -webkit-calc(100% - 20px);
}

.enterIcon {
  position: absolute;
  padding-left: 2px;
  padding-top: 2px;
  width: 41px;
  height: 41px;

  img {
    height: 100%;
    width: auto;
  }
}

.enterText {
  position: absolute;
  padding-left: 10%;
  padding-top: 0px;
  width: 60%;
  height: 41px;
  text-align: center;
}

.dialog {
  .close {
    padding-top: 0px;
    width: 49px;
    height: 49px;

    img {
      height: 100%;
      width: auto;
    }
  }

  .iconAlert {
    img {
      height: 100%;
      width: auto;
    }
  }
}

.dialog2 {
  .iconAlert2 {
    height: 100%;
    width: auto;
  }
}

.logcontent {
  padding: 10px;
}
</style>
